package com.jye.rseven.domain;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Task implements Serializable{
    private int id;
    private int type;
    private String status;
    private String desc;
    private String title;
    private String imgUrl;
    private Date createTime;
    private int uId;
    private int pId;
    @Transient
    private int like;//点赞数量
    @Transient
    private boolean islike;//是否点赞
    @Transient
    private boolean isfollow;//是否关注
    @Transient
    private List<Comments> commentsList;//评论
    @Transient
    private int commentsCount;//总评论数
    @Transient
    private Integer voteCount;
    @Transient
    private User user;
}
